#pragma once

#include <QMainWindow>
#include "Game.h"
#include "GameBoard.h"

namespace Ui {
    class MainWindow;
}

// 主窗口
class MainWindow: public QMainWindow {
    Q_OBJECT

    private: Ui::MainWindow* ui;    // 界面
    private: GameBoard mGameBoard;  // 游戏区域
    private: Game mGame;            // 游戏

    public: explicit MainWindow(QWidget* parent = nullptr);
    public: ~MainWindow();
    private: void keyPressEvent(QKeyEvent*);
    private slots: void on_buttonStart_clicked();
    private slots: void onGameOver(bool);
};
